{% extends "single.html" %}
{% block title %}{{ page_title }}{% endblock %}
{% block styles %}
    <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}styles/privatemsg_add.css">
{% endblock %}
{% block scripts %}
    <script type="text/javascript" src="{{ STATIC_URL }}scripts/tinymce/tinymce.min.js"></script>
    <script type="text/javascript" src="{{ STATIC_URL }}scripts/tinymce/config.js"></script>
{% endblock %}
{% block main %}  
    
 <div class="form">
    <div class="message">
        {% if messages %}
        <ul class="messages">
            {% for message in messages %}
                <li>{{ message }}</li>
            {% endfor %}
        </ul>   
        {% endif %}
    </div>
    <form method="post" action="">                
        {% csrf_token %}
        <h3>发送私信</h3>
        <strong>收信人: <em><a href="{% url mblog_user_index receiver %}">@{{ receiver }}</a></em></strong><br />
        <strong>发信人: <em><a href="{% url mblog_user_index user.username %}">@{{ user.username }}</a></em></strong>
        {{ form.as_table }}
        <input type="submit" class="submit" value="发送"/>
    </form>
    <div class="clear"></div>
</div>
{% endblock %}
